#include <iostream>
#include <fstream>
using namespace std;

int main(int argc, char *argv[]) {
  ofstream f("payload");
  unsigned char buf;
  int size = atoi(argv[1]);
  cout << "generating " << size << " bytes" << endl;
  for(int i=0; i<size; ++i) {
    f << (unsigned char)(rand() % 256);
  }
  return 0;
}
